package com.itheima.Demo1;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;

public class Test1 {
    public static void main(String[] args) {
        impdate<String> stringimpdate = new impdate<>();
        stringimpdate.method("xxxx");
        impdate2 impdate2 = new impdate2();
        impdate2.method("ssss");
    }
}
interface demoimp<T>{
    public abstract void method(T s);
}
class impdate2  implements demoimp<String>{
    @Override
    public void method(String s) {
        System.out.println(s);
    }
}
class impdate<T> implements demoimp<T>{
    @Override
    public void method(T s) {
        System.out.println(s);
    }
}
